const { $fn, $wx, img, $http, $config } = getApp()
Page({
    data: {
        img,
        pageCurrent:1,
        data:[],
    },
    model:{},
    onLoad: function (options) {
        this.paging()
    },
    onPullDownRefresh() { $fn.pullRefresh.call(this) },
    onReachBottom(){ this.paging() },
    paging(){
        $http.paging(this,'car.myReport')
    },
    onTap(e){
        const { id } = e.currentTarget.dataset
        const api = $config.getApi();
        $wx.push('/pages/h5/index',{ url: `${api}car.showpdf?id=${id}`, title:'查看报告' }, true)
    }
})